package application.model;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement(name = "Producents")
public class ProducentsModel
{
    private List<ProducentModel> producents = new ArrayList<ProducentModel>();

    @XmlElement(name = "producent")
    public List<ProducentModel> getProducents()
    {
        return producents;
    }

    public void setProducents(List<ProducentModel> producents)
    {
        this.producents = producents;
    }

    public void addProducent(ProducentModel producentModel)
    {
        producents.add(producentModel);
    }
}
